package engine.newUi
{
	import engine.newUi.DepositoryLogic;
	import engine.ui.lite.BaseUI;
	
	import flash.display.MovieClip;
	
	import newx.com.control.button.NxButton;
	import newx.com.control.group.NxViewGroup;
	import newx.com.control.tab.NxTab;
	import newx.com.control.text.NxLabel;

	/**
	 * 仓库UI 
	 * @author liuel
	 * 
	 */	
	public class DepotUI extends BaseUI
	{
		private static var _self :DepotUI;
	
		
		public var gridGroup        :NxViewGroup;
		/**包裹整理**/
		public var btnOrder         :NxButton
		public var custClip             :MovieClip;
		public var lab_open         :NxLabel;
		/**开启仓库锁**/
		public var btnExpandDepot   :NxButton
		
		public var page:NxTab;
		
		public static function getInstance():DepotUI
		{
			if(_self==null)
			{
				_self=new DepotUI();
			}
			return _self;
		}
		public function DepotUI(popupUI:Boolean=true)
		{
			super(popupUI);
		}
		override public function  Init():void
		{
			DepositoryLogic.getInstance().Init();
//			btnExpandDepot.labelColor = btnOrder.labelColor = 0xffdf8a;
		}
		
		override protected function	BeforeShow():void
		{
			DepositoryLogic.getInstance().BeforeShow();
		}
		override protected function	AfterHide():void
		{
			
			DepositoryLogic.getInstance().AfterHide();
		}
	}
}